import random

# i = 0
# sum_count = 0
#
# while i < 100:
#     i += 1
#     sum_count += i
#
# print(sum_count)

# 1～100的随机数字
num = random.randint(1, 100)

flag = True
count = 0

# while flag:
#     guess = int(input("请输入你猜的数字:"))
#     if guess == num:
#         print(f"猜对了，你一共猜了{count}次")
#         flag = False
#     elif guess < num:
#         print("猜小了")
#         count += 1
#     else:
#         print("猜大了")
#         count += 1

i = 1
while i < 10:
    j = 1
    while j <= i:
        print(f"{j} X {i} = {j * i}", end='\t')
        j += 1
    print()
    i += 1
